package exec567;

import java.io.Serializable;

public class Student implements Serializable {


    private static final long serialVersionUID = 1839403638128841871L;
    private String code;

    private String stuName;

    private SEX sex;

    private int score;


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getStuName() {
        return stuName;
    }
    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public SEX getSex() {
        return sex;
    }

    public void setSex(SEX sex) {
        this.sex = sex;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public Student() {
    }

    public Student(String code, String stuName, SEX sex, int score) {
        this.code = code;
        this.stuName = stuName;
        this.sex = sex;
        this.score = score;
    }

    @Override
    public String toString() {
        return "Student{" +
                "code='" + code + '\'' +
                ", stuName='" + stuName + '\'' +
                ", sex=" + sex +
                ", score=" + score +
                '}';
    }
}
